package com.hig.ledger.mapper;

import java.util.List;
import com.hig.ledger.domain.LedgerMeasuringInstrument;
import org.apache.ibatis.annotations.Select;

/**
 * 计量器具台账Mapper接口
 * 
 * @author ruoyi
 * @date 2024-09-22
 */
public interface LedgerMeasuringInstrumentMapper 
{
    /**
     * 查询计量器具台账
     * 
     * @param id 计量器具台账ID
     * @return 计量器具台账
     */
    public LedgerMeasuringInstrument selectLedgerMeasuringInstrumentById(Long id);

    /**
     * 查询计量器具台账列表
     * 
     * @param ledgerMeasuringInstrument 计量器具台账
     * @return 计量器具台账集合
     */
    public List<LedgerMeasuringInstrument> selectLedgerMeasuringInstrumentList(LedgerMeasuringInstrument ledgerMeasuringInstrument);

    /**
     * 新增计量器具台账
     * 
     * @param ledgerMeasuringInstrument 计量器具台账
     * @return 结果
     */
    public int insertLedgerMeasuringInstrument(LedgerMeasuringInstrument ledgerMeasuringInstrument);
    @Select("SELECT IFNULL(MAX(id), 0) + 1 FROM ledger_measuring_instrument")
    long getNextId();
    /**
     * 修改计量器具台账
     * 
     * @param ledgerMeasuringInstrument 计量器具台账
     * @return 结果
     */
    public int updateLedgerMeasuringInstrument(LedgerMeasuringInstrument ledgerMeasuringInstrument);

    /**
     * 删除计量器具台账
     * 
     * @param id 计量器具台账ID
     * @return 结果
     */
    public int deleteLedgerMeasuringInstrumentById(Long id);

    /**
     * 批量删除计量器具台账
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteLedgerMeasuringInstrumentByIds(Long[] ids);
}
